Skip to content

[Php81] Skip as Arg value not callable type on ArrayToFirstClassCallableRector#7762

Closed
samsonasik wants to merge 7 commits intomainfrom
skip-as-arg
Closed

[Php81] Skip as Arg value not callable type on ArrayToFirstClassCallableRector#7762
samsonasik wants to merge 7 commits intomainfrom
skip-as-arg

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Dec 18, 2025

Fixes rectorphp/rector#9563

Also update existing fixture to skip factory() on services symfony config as not allow callable, see https://github.com/symfony/dependency-injection/blob/bf7359d13a5746908ee51dd72ab195f578aae0e3/Loader/Configurator/Traits/FactoryTrait.php#L25

@samsonasik samsonasik marked this pull request as draft December 18, 2025 08:14
@TomasVotruba
Copy link
Member

@samsonasik Just checking, is this something we should ship in next release or does it require more work?

@samsonasik
Copy link
Member Author

@TomasVotruba it require more work, I will continue later

@TomasVotruba
Copy link
Member

Got it 👍

@samsonasik samsonasik changed the title [Php81] Skip as Arg value on ArrayToFirstClassCallableRector [Php81] Skip as Arg value not callable on ArrayToFirstClassCallableRector Feb 12, 2026
@samsonasik samsonasik changed the title [Php81] Skip as Arg value not callable on ArrayToFirstClassCallableRector [Php81] Skip as Arg value not callable type on ArrayToFirstClassCallableRector Feb 12, 2026
@samsonasik
Copy link
Member Author

Closing for now as used on multiple cases and some cases are valid.

@samsonasik samsonasik closed this Feb 17, 2026
@samsonasik samsonasik deleted the skip-as-arg branch February 17, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect behavior of ArrayToFirstClassCallableRector

3 participants

Comments